<template>
  <div>
    <a-card title="标题">
      <div class="flex">
        <div>
          <a-form-item :label="t['搜索']">
            <a-input-search allow-clear></a-input-search>
          </a-form-item>
        </div>
      </div>
      <div>
        <a-button type="primary" @click="emit('create')">{{ t["新建"] }}</a-button>
      </div>
    </a-card>
  </div>
</template>

<script setup lang="ts">
const t = translate("公共模块");
const emit = defineEmits(["create"]);
</script>

<style lang="scss" scoped></style>
